using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using BONSAI.Common;
using BONSAI.Common.DTO;
using BONSAI.DAL;

namespace BONSAI.BLL
{
	public class NewsBO
	{
		public NewsDTO GetByID(string id)
		{
			return (new NewsDAO()).GetByID(id);
		}

		public IList<NewsDTO> GetAll()
		{
			return (new NewsDAO()).GetAll();
		}

		public string Insert(NewsDTO news)
		{
			return (new NewsDAO()).Insert(news);
		}

		public void UpdateByID(NewsDTO news)
		{
			(new NewsDAO()).UpdateByID(news);
		}

		public void DeleteByID(string id)
		{
			(new NewsDAO()).DeleteByID(id);
		}
	}
}

